package com.google.code.nexttraffic.web.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.google.code.nexttraffic.web.model.base.BaseObject;


/**
 * @author ParkHaeCheol
 * 
 */
public class DetailTerminal extends BaseObject {

	private static final long serialVersionUID = 1L;

	private Integer detailTerminalId;
	
	private Integer terminalId;
	
	private String homepage;
	
	private String image;

	@Override
	public boolean equals(Object o) {

		if (o instanceof DetailTerminal == false) {
			return false;
		}

		if (this == o) {
			return true;
		}

		DetailTerminal rhs = (DetailTerminal) o;

		EqualsBuilder equb = new EqualsBuilder();
		equb.append(detailTerminalId, rhs.getDetailTerminalId());
		equb.append(terminalId, rhs.getTerminalId());

		return equb.isEquals();
	}

	@Override
	public int hashCode() {

		HashCodeBuilder hashcode = new HashCodeBuilder(3, 37);
		hashcode.append(detailTerminalId);
		hashcode.append(terminalId);

		return hashcode.toHashCode();
	}

	@Override
	public String toString() {

		ToStringBuilder tob = new ToStringBuilder(this,
				ToStringStyle.MULTI_LINE_STYLE);

		tob.append("detailTerminalId", detailTerminalId);
		tob.append("terminalId", terminalId);
		tob.append("homepage", homepage);
		tob.append("image", image);

		return tob.toString();

	}

	public Integer getDetailTerminalId() {
		return detailTerminalId;
	}

	public void setDetailTerminalId(Integer detailTerminalId) {
		this.detailTerminalId = detailTerminalId;
	}

	public Integer getTerminalId() {
		return terminalId;
	}

	public void setTerminalId(Integer terminalId) {
		this.terminalId = terminalId;
	}

	public String getHomepage() {
		return homepage;
	}

	public void setHomepage(String homepage) {
		this.homepage = homepage;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	

}
